Skip to content

Conversation

@llIllIllIllIllIllIllIllI
Copy link
Contributor

🧷 문제 링크

https://www.acmicpc.net/problem/2666

🧭 풀이 시간

40분

👀 체감 난이도

✏️ 문제 설명

n개의 벽장 중 2개만 열려있고, 순서대로 특정 벽장을 사용해야 할 때 문 이동 횟수의 최솟값을 구하는 문제

🔍 풀이 방법

dp[idx][a][b] = idx번째 벽장을 사용할 차례이고, 열린 문 위치가 a, b일 때 최소 이동 횟수
열린 문 2개의 위치를 상태로 관리

⏳ 회고

약간 어렵네요

@llIllIllIllIllIllIllIllI llIllIllIllIllIllIllIllI added the success 👍 해설을 보지 않고 풀었을 때 label Dec 7, 2025
@ShinHeeEul ShinHeeEul merged commit e8842c6 into main Dec 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants